<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic xml:lang="en" id="topic1">
  <title>pg_foreign_table</title>
  <body>
    <p>The system catalog table <codeph>pg_foreign_table</codeph> contains auxiliary information about foreign tables. A foreign table is primarily represented by a <codeph>pg_class</codeph> entry, just like a regular table. Its <codeph>pg_foreign_table</codeph> entry contains the information that is pertinent only to foreign tables and not any other kind of relation.</p>
    <table id="table_zgy_xfx_tz">
      <title>pg_catalog.pg_foreign_table</title>
      <tgroup cols="4">
        <colspec colnum="1" colname="col1" colwidth="131pt"/>
        <colspec colnum="2" colname="col2" colwidth="86pt"/>
        <colspec colnum="3" colname="col3" colwidth="85pt"/>
        <colspec colnum="4" colname="col4" colwidth="147pt"/>
        <thead>
          <row>
            <entry colname="col1">column</entry>
            <entry colname="col2">type</entry>
            <entry colname="col3">references</entry>
            <entry colname="col4">description</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="col1"><codeph>ftrelid</codeph></entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_class.oid</entry>
            <entry colname="col4">OID of the <codeph>pg_class</codeph> entry for this foreign table.</entry>
          </row>
          <row>
            <entry colname="col1"><codeph>ftserver</codeph></entry>
            <entry colname="col2">oid</entry>
            <entry colname="col3">pg_foreign_server.oid</entry>
            <entry colname="col4">OID of the foreign server for this foreign table.</entry>
          </row>
          <row>
            <entry colname="col1"><codeph>ftoptions</codeph></entry>
            <entry colname="col2">text[]</entry>
            <entry colname="col3"></entry>
            <entry colname="col4">Foreign table options, as "keyword=value" strings.</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </body>
</topic>
